/* <Top Design> -------------------------------------------------------------------------------- */

body {
	margin: 4px;
	font-family: sans-serif;
	font-size: 16px;
}

footer {
	text-align: center;
	padding: 5px;
	background-color: rgb(255, 223, 175);
	border-radius: 5px;
	font-size: 0.8em;
	color: rgb(80, 80, 80);
}

footer * {
	margin: 5px;
}

#icp a {
	color: gray;
	font-size: 10px;
	text-decoration: none;
}

#content {
	display: flex;
	margin-top: 4px;
	margin-bottom: 4px;
	justify-content: center;
	width: 100%;
	min-height: 400px;
}

#main-content-container {
	box-shadow: inset 0px 0px 300px 0px rgb(255, 229, 238);
	border-radius: 5px;
	flex-grow: 1;
}

#main-content {
	padding-top: 10px;
	padding-bottom: 40px;
	width: 90%;
}

/* --------------------------------------------------------------------------------------------- */

/* <Navigation Bar> ---------------------------------------------------------------------------- */

header {
	background-color: rgb(201, 201, 201);
	border-radius: 5px;
}

#button-container {
	position: relative;
	width: 60%;
	min-width: 300px;  /* 3 * 100px */
	margin: 0 auto;
	display: table;
}

#button-list {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 5px;
}

li.navibar-button {
	float: left;
}

li.navibar-button a {
	display: block;
	color: rgb(0, 0, 0);
	text-align: center;
	text-decoration: none;
	border-radius: 5px;
	width: 100px;
	height: 40px;
	line-height: 40px;
	transition: background-color 0.3s;
	-webkit-transition: background-color 0.3s;
}

li.navibar-button a:hover:not(.active-button) {
	background-color: rgb(139, 139, 139);
	border-radius: 5px;
}

.active-button {
	background-color: #80fcfc;
}

/* --------------------------------------------------------------------------------------------- */

/* <Tutorial List> ----------------------------------------------------------------------------- */

#list-container {
	margin-right: 4px;
	width: 30%;
	min-width: 180px;
	max-width: 250px;
}

#list-body {
	border-radius: 5px;
	overflow: hidden;
}

#list-tittle {
	text-align: center;
	font-size: 1em;
	font-weight: bold;
	padding: 10px;
	background-color: #f5edde;
}

#list-content {
	background-color: #f6f4f0;
}

#list-content a {
	display: block;
	text-decoration: none;
	color: black;
	font-size: 14px;
	padding: 5px 15px;
	border-bottom: 1px solid #efefef;
	line-height: 24px;
}

#list-content a:hover {
	font-weight: bold;
}

#mobile-list-button {
	display: none;
	position: absolute;
	background-color: rgb(179, 179, 179);
	border-radius: 5px;
	top: 4px;
	right: 4px;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
}

@media screen and (max-width: 1000px) {
	#content {
		flex-direction: column;
	}

	#list-container {
		display: none;
		width: 100%;
		max-width: none;
		margin: 0 0 4px 0;
	}

	#mobile-list-button {
		display: block;
	}
}

/* --------------------------------------------------------------------------------------------- */

/* <Image Magnifier> --------------------------------------------------------------------------- */

#image-magnifier {
	display: none;  /* Hidden by default */
	position: fixed;  /* Stay in place */
	z-index: 1;  /* Sit on top */
	left: 0;
	top: 0;
	width: 100%;  /* Full width */
	height: 100%;  /* Full height */
	overflow: auto;  /* Enable scroll if needed */
	background-color: rgb(0, 0, 0);  /* Fallback color */
	background-color: rgba(0, 0, 0, 0.6);  /* Black w/ opacity */
	cursor: zoom-out;
}

#image-magnifier-content {
	position: absolute;
	margin: auto;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	
	display: block;
	object-fit: contain;
	width: 100%;
	height: 100%;
	max-height: 100%;
	max-width: 100%;
}

#image-magnifier-content {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform: scale(0.5)} 
    to {-webkit-transform: scale(1)}
}

@keyframes zoom {
    from {transform: scale(0.5)} 
    to {transform: scale(1)}
}

/* --------------------------------------------------------------------------------------------- */
